<div class="gap"></div>
<div class="gap"></div>
<section class="form-step1">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3 class="panel-title"><?php echo Yii::t('app', 'Manage') . ' ' . GxHtml::encode($model->label(2)); ?></h3>
                    </div>
                    <div class="panel-body">
                        <div class="col-lg-8">
                            <?php
                            $this->menu = array(                               
                                array('label' => Yii::t('app', 'Create') . ' ' . $model->label(), 'url' => array('create')),
                            );
                            ?>

                  <?php
$this->widget('zii.widgets.grid.CGridView', array(
    'id' => 'page-type-grid',
    'dataProvider' => $model->search(),
    'filter' => $model,
    'columns' => array(
        'page_name',
        //'parent_id',
        array('name'=>'parent_id',
            'value' => '$data->getCategoryname($data->parent_id)',
            ),
        array(
            'name' => 'status',
            'value' => '($data->status === 0) ? Yii::t(\'app\', \'No\') : Yii::t(\'app\', \'Yes\')',
            'filter' => array('0' => Yii::t('app', 'No'), '1' => Yii::t('app', 'Yes')),
        ),
        array(
            'class' => 'CButtonColumn',
            'template' => '{view}{update}',
        ),
    ),
));
?>

                        </div>
                        <div class="col-lg-2"></div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</section>
<div class="gap"></div>
<div class="gap"></div>